package com.example.musicdemo.ui.fragment

import com.example.musicdemo.adapter.SearchAdapter
import com.example.musicdemo.base.BaseListAdapter
import com.example.musicdemo.base.BaseListFragment
import com.example.musicdemo.base.BaseListPresenter
import com.example.musicdemo.model.Music
import com.example.musicdemo.presenter.impl.SearchPresenterImp
import com.example.musicdemo.widget.SearchItemView

class SearchFragment: BaseListFragment<List<Music>, Music, SearchItemView>() {
    override fun getSpecialPresenter(): BaseListPresenter {
        return SearchPresenterImp(this)
    }

    override fun getList(response: List<Music>?): List<Music>? {
        return response
    }

    override fun getSpecialAdapter(): BaseListAdapter<Music, SearchItemView> {
        return SearchAdapter()
    }
}
